home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / swindows.zip / CURSOR.DOC < prev    next >
Text File  |  1990-04-17  |  2KB  |  35 lines

  1.                                   CURSOR.TPU
  2.                        Cursor Control Turbo Pascal Unit
  3.                              by David C. Swaim II
  4.  
  5.  
  6.           There  are  times,  like  when you are setting up a highlight bar
  7.     menu, that you do not want to have a flashing  cursor  on  the  screen.
  8.     Turbo Pascal has no built in procedure to turn off and on the cursor so
  9.     without some external procedure you cannot cut off the cursor.  That is
  10.     what these procedures are designed to do.
  11.  
  12.           The  CURSOR.TPU unit is a very small and simple Turbo Pascal unit
  13.     which has only two procedures which have two very  specific  functions.
  14.     The  CursorOn  procedure  will  turn  the  blinking  cursor  on and the
  15.     CursorOff procedure will turn off the cursor so it is not visible.   To
  16.     turn off the cursor in a Turbo Pascal program simply put:
  17.  
  18.                     CursorOff;
  19.  
  20.     in  your  program at the appropriate place.  To turn the cursor back on
  21.     put:
  22.  
  23.                     CursorOn;
  24.  
  25.     in your program.  The CursorOn procedure gives  a  large  block  cursor
  26.     instead  of  the underline cursor that is normal for DOS.  I have found
  27.     that many people have trouble finding the cursor on a busy input screen
  28.     on monochrome  monitors  or  on  laptop  displays.   Therefore  all  my
  29.     programs use a block cursor.
  30.  
  31.     Note:  The cursor procedures in the CURSOR.TPU are also included in the
  32.     INPUT.TPU unit so if your program uses INPUT you already have access to
  33.     the cursor procedures without listing CURSOR in your uses clause.
  34.  
  35.